<div class="page_inner">

	<div class="login <?php if (($this->router->method != 'login') && ($this->router->method != 'index')) echo 'hide' ?>" id="login">
        <h1><?php echo T_('Enter to TestUP'); ?></h1>
        <?php if(!empty($login_error)) echo $login_error . '<div class="gap5"></div>'; ?>
    
    	<?php if(!empty($forgot_completed)):?>
			<h3><?php echo T_('A link to activate new password was sent to your email.'); ?></h3>
	
			<p><?php T_('Please check your emailbox. The email with activation link of new password was sent to you. After you sign in you can change this password in your profile.'); ?><br/></p>		
		<?php endif; ?>
    
        <?php echo form_open('/user/login/') ?>
        <div class="box_login">
            <img alt="" src="/img/bg_border_top.png" width="304" height="22" />
            <div class="inner">
                <label><?php echo T_('Login'); ?>: <br /><small style="font-weight: normal"><?php echo T_('As your Email'); ?></small></label>
                <?php echo form_input('user_login', $this->input->post('auth_user_login'), 'maxlength="200" class="text"')?>
                
                <label><?php echo T_('Password'); ?>:</label>
                <?php echo form_password('user_password', $this->input->post('auth_user_password'), 'class="text"')?>
            </div>
            <img alt="" src="/img/bg_border_bottom.png" width="304" height="14" />
        </div>
        <input class="enter" name="enter" value="<?php echo T_('Enter'); ?>" type="submit"><br />
        <?php echo anchor('/user/register/company', T_('Register as Company'))?>&nbsp;&nbsp;
        <?php echo anchor('/user/register/contributor', T_('Register as Contributor'))?><br />
        <a href="javascript:void(0)" onclick="toggleEmail(true)"><?php echo T_('Forgot password?'); ?></a>
        <?php echo form_close() ?>  
    </div>  
    

    <div class="login <?php if ($this->router->method != 'password_forgot') echo 'hide'; ?>" id="forgot">
        <h1><?php echo T_('Forgot password?'); ?><br /><?php echo T_('Password Recovery'); ?></h1>
        <?php if(!empty($forgot_error)) echo $forgot_error; ?>
    
        <?php echo  form_open('user/password_forgot', 'id="login_form"') ?>
        <div class="box_login">
            <img alt="" src="/img/bg_border_top.png" width="304" height="22" />
            <div class="inner">
                <label><?php echo T_('Login'); ?>: <br /><small style="font-weight: normal"><?php echo T_('As your Email'); ?></small></label>
                <?php echo form_input('forgot_user_login', $this->input->post('forgot_user_login'), 'maxlength="200" class="text"')?>                
            </div>
            <img alt="" src="/img/bg_border_bottom.png" width="304" height="14" />
        </div>
        <input class="enter" name="enter" value="<?php echo T_('OK'); ?>" type="submit" />
        <input class="enter" name="cancel" value="<?php echo T_('Cancel'); ?>" type="button" onclick="toggleEmail(false)" />
        <?php echo form_close() ?> 
    </div>  
    
</div>